output_2 = ''
for i in range(0, 1000):
    output = 'SatScanBatch.exe hl'+str(i)+'.prm'
    output_2 += 'call hl' + str(i) + '.bat\n'
    filename = 'C:/_DATA/CancerData/test/Jun08/hl' + str(i) + '.bat'
    f = open(filename,'w')
    f.write(output)
    f.close()
filename = 'C:/_DATA/CancerData/test/Jun08/runme.bat'
f = open(filename,'w')
f.write(output_2)
f.close()

print "Done!"